package com.jboa.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.jboa.dao.IPositionDAO;
import com.jboa.service.IPositionService;
import com.jboa.vo.SysPosition;
@Service("positionService")
public class PositionServiceImpl implements IPositionService {
	@Autowired
	@Qualifier("positionDao")
	private IPositionDAO dao;
	/**
	 * 查询所有信息
	 */
	public List<SysPosition> getAll() {
		return dao.getAll();
	}
	
	/**
	 * 根据id获取职位信息
	 */
	public SysPosition getByid(Long id) {
		return dao.getById(id);
	}

}
